package chapter2.No2_3_volatile关键字.dVolatile非原子的特性;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/16 0016
 */
public class ServiceClass {

    volatile int count;

    public void addCount() {
        for (int i = 0; i < 100; i++) {
            count++;
        }
        System.out.println(count);
    }
}
